package com.ag.zrt.action;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.ag.bean.TbInforType;
import com.ag.common.BaseAction;
import com.ag.zrt.service.InforTypeService;
@Controller("findInforTypeAction")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public class FindInforTypeAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5119604084751936191L;
	private List<TbInforType> inforTypeList;

	@Resource(name = "InforTypeService")
	private InforTypeService inforTypeService;

	public List<TbInforType> getInforTypeList() {
		return inforTypeList;
	}

	public void setInforTypeService(InforTypeService inforTypeService) {
		this.inforTypeService = inforTypeService;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		inforTypeList = inforTypeService.findAll();
		//System.out.println(inforTypeList.size());
		
		return "find_info_type_succ";
	}

}
